<template>
	<view :class="[primarySize()]">
		<form @submit="bindSubmit">
			<view class="page-foot bg-white">
				<view class="foot_btn">
					<button formType="submit" hover-class="none" class="btn1">提交</button>
				</view>
			</view>
			<view class="container">
				<view>
					<textarea class="text_main" name="intro" :value="info.intro" placeholder="公司简介描述（不可有电话号码或微信联系方式）"
						maxlength="2000" placeholder-class="colb"></textarea>
				</view>
			</view>
		</form>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {

				info: {}
			}
		},
		onReady() {
			uni.setNavigationBarColor({
				frontColor: '#ffffff',
				backgroundColor: this.primaryColor()
			})
		},
		onLoad: function(options) {

			this.getOpenerEventChannel().on('infoTransfer', data => {
				this.info = data.info;
			});
		},
		methods: {
			bindSubmit(event) {
				this.info.intro = event.detail.value.intro;
				this.getOpenerEventChannel().emit('infoTransfer', {
					info: this.info
				});
				uni.navigateBack();
			}
		}
	}
</script>

<style lang="scss" scoped>
	.foot_btn {
		padding: 10rpx 30rpx;
	}

	.foot_btn button {
		margin-left: 0
	}

	.text_main {
		width: 690rpx;
		height: 727rpx;
		display: block;
		margin: 0 auto;
		border: 1rpx solid #EBEBEB;
		padding: 30rpx 22rpx;
		box-sizing: border-box;
		background: #fff;
	}

	.container {
		padding-top: 28rpx;
	}
</style>